/**
 * 
 */
package ua.kiev.ntukpi.asu.ga;

import java.util.List;

/**
 * @author Alexander Galibey
 *
 */
public class Individual {

	private List<Job> jobs;

	public Individual() {

	}

	public void setJobs(List<Job> jobs) {
		this.jobs = jobs;
	}

	public Job getValue(int index) {

		return jobs.get(index);
	}

	public void setValue(int index, Job value) {

		jobs.set(index, value);
	}

	public List<Job> getJobs() {

		return jobs;
	}
	
	public String toString(){
		
		StringBuffer result = new StringBuffer();
		for (Job job : this.jobs){
			
			result.append(job.getNumber() + " ");
		}
		return result.toString();
	}
	
	
}
